/***************************************************************************                            *
 *Author: Achilles Zhang												   *
 *Date: 2012.02.28														   *
 *File Name: DWGImporter.h												   *
 *Description: The file is used to declare the function of importing DWG files.	       *
 ***************************************************************************/
#ifndef DWGIMPORTER_H
#define DWGIMPORTER_H

#include "stdafx.h"
#include "OdaToolkit.h"
#include "CKAll.h"
#include "DWGImporterDialog.h"
#include "CustomPlayer.h"

#include <string>

using namespace std;

class DWGImporter{
public:
	DWGImporter();
	~DWGImporter();
	
	void showDialog(string);
	void doImport(/*string filename*/int radius, QColor color, int m_count);
	void createPipe(VxVector, VxVector);
private:
	CComModule _Module;
	IOdaHostApp      *m_iHost;
	IAcadApplication *m_iApplication;
	IAcadDocument    *m_pCurrentDoc;
	DWGImporterDialog *importerDialog;
	string filename;

public:
	static DWGImporter *_singleton;
	static DWGImporter *Instance();
	static void destruct();
};

#endif	//DWGIMPORTER_H